<?php
    session_start();
    require("../inc/db.class.php");
    $tstmnl= mysql_escape_string($_POST['tstmnl']);
    $email = mysql_escape_string($_POST['email']);
    $name = mysql_escape_string($_POST['name']);
    $usr_nmbr = $_SESSION['id'];
    $dt_tm = date("Y-m-d H:i:s");
    $dbo= new database();
    $insertTestimonial="insert into  ".DB_NAME.".tstmnl (USR_NMBR, ML, TSTMNL, DT_TM, IS_DLTD_FLG) values('$usr_nmbr', '$email', '$tstmnl', '$dt_tm', 'n') ";
    if($dbo->query($insertTestimonial))
        echo "true";
    else
        echo "false";
        
        
?>